#ifndef UTIL_H
#define UTIL_H
#include <fcntl.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <errno.h>
#include "toml.h"
typedef struct client_configure_s{
    char host[200];
    char port[6];
    char port2[6];
}client_configure;


char *get_hash(const char *filename, const char *algorithm);
int verify_hash(const char *filename, const char *algorithm,
                const char *expected_hash);

int conf_init(toml_table_t** conf);
int conf_client(client_configure* s);

#endif
